package cn.shafish.dubbo.annotation.provider.service;

import cn.shafish.serviceapi.dto.UserDTO;
import cn.shafish.serviceapi.service.UserRpcService;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService(version = "${dubbo.provider.user-service.version}")
public class UserRpcServiceImpl implements UserRpcService {
    @Override
    public UserDTO getUser(Integer id) {
        return new UserDTO().setId(id)
                .setName("shafish-"+id)
                .setGender(1);
    }
}
